<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Test extends CI_Controller 
{

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -  
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in 
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	 */
	public function test1()
	{
		echo "OK";
		exit();
		$this->load->view('welcome_message');
	}
	
	public function tagmodel1()
	{
		$this->load->model('tags_model');
		$arrData=array('tag'=>'tagname1','agentId'=>'1');
		$res=$this->tags_model->insertItem($arrData);
		var_dump($res);
	}
	
	public function tagmodel2()
	{
		$this->load->model('tags_model');
		$arrData=array('tag'=>'tagname1','agentId'=>'1');
		$res=$this->tags_model->normalSearch($arrData,10);
		var_dump($res);
	}
	
	public function taskmodel1()
	{
		$this->load->model('tasks_model');
		$arrData=array('id'=>2);
		$res=$this->tasks_model->listSearch($arrData,10);
		var_dump($res);
		
	}
	
	public function taskmodel2()
	{
		$this->load->model('tasks_model');
		$res=$this->tasks_model->getFormData(2);
		var_dump($res);
		
	}
	
	public function taskmodel3()
	{
		$this->load->model('tasks_model');
	 				$arrData=array(
	 				'tasks'=>array('id'=>'2','userId'=>'11','type'=>'12','task'=>'task_update',
	 				'originalTextId'=>'13','status'=>'15','verifyStatus'=>'16','agentId'=>'17'),
	 				'tasks_tags'=>array(0=>array('id'=>'18','taskId'=>'2','tagId'=>'5','tagName'=>'tagname5'),
	 				1=>array('id'=>'19','taskId'=>'2','tagId'=>'6','tagName'=>'tagname6')),
	 				);
		$res=$this->tasks_model->updateFormData($arrData);
		var_dump($res);
		
	}
	
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */